package org.ym.file.domain.model.files.embed;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * 文件信息
 * @author ym
 */
@Embeddable
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@EqualsAndHashCode
@ToString
public class FileInfo implements Serializable {
    private static final long serialVersionUID = -7818676975434328439L;
    /**
     * 文件名称
     */
    @Column(name="file_name",length = 100,nullable = false)
    private String fileName;
    /**
     * 文件类型
     */
    @Column(name = "file_ext",length = 20)
    private String fileExt;
    /**
     * 文件大小
     */
    @Column(name = "file_size",nullable = false)
    private Long fileSize = 0L;

}
